package com.zhuxi.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/email")
public class EmailController {

    @GetMapping("/{email}/{code}")
    public Boolean sendCode(@PathVariable String email,@PathVariable String code) {
        //@Todo 发邮件功能
        System.out.println("已给"+email+"发送邮件，邮件内容为"+code);
        return true;
    }
}
